package cn.fjsay.java.demo4;

class Dog extends Animal {
    @Override
    public void cry() {
        System.out.println("Dog barks");
    }

    @Override
    public String getAnimalName() {
        return "Dog";
    }
}
